<?php
/**
 * Created by PhpStorm.
 * User: daojia
 * Date: 2020/5/8
 * Time: 14:53
 */

namespace app\store\model\wxapp;
use app\common\library\wechat\payma\Payma as PaymaApi;
use app\store\model\Wxapp as WxappModel;
use app\common\model\wxapp\Payma as PaymaModel;

class Payma extends PaymaModel
{
    public function getUnlimited($page, $scene = ''){
        // 小程序配置信息
        $wxConfig = WxappModel::getWxappCache();
        $paymaModel = new PaymaApi($wxConfig['app_id'], $wxConfig['app_secret']);
        $result = $paymaModel->getUnlimited($page, $scene);
        return $result;
    }
}